<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
</head>
<body>
<button>add</button>

<script type="text/javascript">

$(function(){
	$("button").on("click",function(){
		var user={name:'Tomli',age:23,birth:'1999-07-09'};
		$.ajax({type:"POST",url:"test5",data:JSON.stringify(user)
			,contentType:"application/json"}
		)
		.done(function(user){
			alert(user.name+"..."+user.birth);
		});
	});
});
</script>
</body>
</html>



